package com.aifund.app.entity.form.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

@Data
@ApiModel(description = "申请交易员")
public class RequestExchangeManForm {

    @ApiModelProperty("策略名")
    @Max(value = 10,message = "策略名10个字符以内")
    @Min(value = 1,message = "策略名最少一个字符")
    private String strategyName;

    /**
     * 策略图标
     */
    @NotBlank(message = "策略图标不能为空")
    private String tacticsIcon;

    //交易所
    @ApiModelProperty("交易所ID")
    @NotBlank(message = "交易所ID不能为空")
    private Long exchangeId;

    //交易类别(现货/合约）
    @ApiModelProperty("交易类别(现货(1)/合约(2)）")
    @NotBlank(message = "交易类别不能为空")
    private Integer tradeType;

    @ApiModelProperty("apiKey")
    @NotBlank(message = "apiKey不能为空")
    private String apiKey;

    @ApiModelProperty("apiSecret")
    @NotBlank(message = "apiSecret不能为空")
    private String apiSecret;

    //本位币
    @ApiModelProperty("基础币")
    @NotBlank(message = "基础币不能为空")
    private String baseCurrency;

    //自动选择交易币
    @NotNull(message = "是否自动选择交易币不能为空")
    private boolean autoSelectTransactionCurrency;

    //交易币
    private List<String> transactionCurrency;

    //费用
    private BigDecimal fee;

    //交易方式
    @NotBlank(message = "交易方式不能为空")
    private Integer meansOfTransaction;

    //交易介绍
    private String description;


}
